package com.youmu.sichuansfc.domain.pojo;

import com.youmu.sichuansfc.dto.fund.FundManagerFundInvestDto;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 *
 * 包含管理人名
 * The persistent class for the youmu_fund_manager_fund database table.
 * 
 */
@Entity
@Data
public class SearchYoumuFundManagerFund implements Serializable {
	private static final Long serialVersionUID = 1L;

	//@Temporal(TemporalType.Date)
	@Column(name="put_on_time")
	private Date putOnTime;

	@Column(name="invest_place")
	private String investPlace;

	@Column(name="invest_project")
	private String investProject;
	@Column(name="invest_money")
	private String investMoney;
	@Column(name="invest_craft")
	private String investCraft;
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long id;

	//@Temporal(TemporalType.Date)
	@Column(name="add_time")
	private Date addTime;

	@Column(name="agency_real_money")
	private double agencyRealMoney;

	@Column(name="bankroll_source")
	private String bankrollSource;

	//@Temporal(TemporalType.Date)
	@Column(name="end_time")
	private Date endTime;

	//@Temporal(TemporalType.Date)
	@Column(name="fund_time")
	private Date fundTime;

	@Column(name="fund_manager_id")
	private Long fundManagerId;

	@Column(name="fund_name")
	private String fundName;

	@Column(name="fund_type")
	private Integer fundType;

	@Column(name="invest_agency_count")
	private Integer investAgencyCount;

	@Column(name="invest_aspect")
	private String investAspect;

	@Column(name="invest_count")
	private Integer investCount;

	@Column(name="invest_min_money")
	private double investMinMoney;

	@Column(name="invest_natural_count")
	private Integer investNaturalCount;

	@Column(name="is_delete")
	private Boolean isDelete;

	@Column(name="is_rank")
	private byte isRank;

	@Column(name="is_trusteeship")
	private byte isTrusteeship;

	@Column(name="natural_real_money")
	private double naturalRealMoney;

	@Column(name="organiza_tye")
	private Integer organizaTye;

	@Column(name="paln_money")
	private double palnMoney;

	@Column(name="put_on_record")
	private Boolean putOnRecord;

	@Column(name="rank_ratio")
	private double rankRatio;

	@Column(name="real_money")
	private double realMoney;

	private Integer status;

	@Column(name="trusteeship_user")
	private String trusteeshipUser;

	@Column(name="update_count")
	private Integer updateCount;

	@Column(name="invest_manager_add")
	private String investManagerAdd;

	@Column(name="invest_manager_add_money")
	private double investManagerAddMoney;

	@Column(name="trusteeship_company_type")
	private String trusteeshipCompanyType;

	@Column(name="trusteeship_company")
	private String trusteeshipCompany;

	@Column(name="invest_natural_real_money")
	private String investNaturalRealMoney;

	// 管理人名
	@Column(name="manager_name")
	private String managerName;


	// 主要投向
	@Transient
	private List<FundManagerFundInvestDto> fundInvestDtos;
}